{% extends 'store/blank.html' %}

{% block title %}
    天天生鲜
{%  endblock %}

{% block style %}
    <style>
          .store_table{
              line-height: 40px;
              text-align: center;
          }
          .t_label{
              text-align: right;
          }
          .t_message{
              text-align: left;
              color: red;
          }

    </style>
{% endblock %}

{% block contenter %}
    <div class="container-fluid">
            <div class="card shadow mb-4">
                <div class="card-header py-3">
                  <h4 class="m-0 font-weight-bold text-primary">店铺详情</h4>
                </div>
                <div class="card-body">
                    <form method="post" enctype="multipart/form-data">
                        {% csrf_token %}
                  <table class="table store_table">
                        <tr>
                            <td rowspan="4">
                                <a href="#" class="thumbnail">
                                    <img src="/static/{{ s.s_picture }}/">
                                </a>
                            </td>
                            <th class="t_label">店铺名称</th>
                            <td class="t_input"><input class="form-control" type="text" placeholder="店铺名称" name="s_name" value="{{ s.s_name }}"></td>
                            <td class="t_message">店铺名称每月至多修改一次</td>

                        </tr>
                        <tr>
                            <th class="t_label">店铺地址</th>
                            <td class="t_input" colspan="2">
                                <input class="form-control" type="text" placeholder="店铺地址" name = 's_address' value="{{ s.s_address }}">
                            </td>
                        </tr>
                        <tr>
                            <th colspan="3">店铺描述</th>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <textarea class="form-control" name = 's_description'>{{ s.s_description }}</textarea>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input class="btn btn-primary" type="file" value="{{ s.s_picture }}" name = 's_picture'>
                            </td>
                            <td colspan="3">
                                <input class="btn btn-primary" type="submit" value="发起修改">
                            </td>
                        </tr>
                  </table>
                    </form>
                </div>
            </div>
        </div>
{%  endblock %}
